import config from "@/config"
import http from "@/utils/request"

export default {
	addOrUpdateFlow: {
		url: `${config.API_URL}/flow/sys-flow/saveorupdate`,
		name: "添加工作流",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
    flowPage:{
        url: `${config.API_URL}/flow/sys-flow/page`,
		name: "工作流列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
    },
    getflow:{
        url: `${config.API_URL}/flow/sys-flow/getbyid`,
		name: "工作流列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
    }
}